home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: calloc help needed
- Date: 16 Feb 96 11:29:42 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.824470182@rscernix>
- References: <1996Feb15.125431.7751@leeds.ac.uk> <4fvmgbINNbp0@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4fvmgbINNbp0@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
-
- >In article <1996Feb15.125431.7751@leeds.ac.uk>,
- >A M Casey <csyamc@scs.leeds.ac.uk> wrote:
- >
- > >doesnt work, as far as I can tell calloc returns an int.
- >
- >It is probably "implicitly defined" to return an int, because you lack a
- >declaration. Try including the "malloc.h" header file.
-
- You misspelled <stdlib.h>. There is no such thing as "malloc.h" defined
- by the C standard. There is an /usr/include/malloc.h on my system,
- but it doesn't contain any declaration for calloc (the only functions
- declared there are mallinfo and mallopt).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-